﻿<%@ Page Title="" Language="C#" MasterPageFile="~/design_page/student/student.master" AutoEventWireup="true" CodeFile="student_send_post.aspx.cs" Inherits="design_page_student_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

 <div style="text-align: center; margin-right: auto; margin-left: auto; height: 166px;">
          <div style="text-align: center; margin-right: auto; margin-left: auto; width: 1048px;" >
        <table cellpadding="0" cellspacing="11" class="style19" style="width: 1035px">
            <tr>
                      <td style="vertical-align: bottom; height: 1px; text-align: right; width: 150px;">
                          消息类型:</td>
                <td 
                    class="style27" 
                          style="vertical-align: bottom; text-align: left; height: 1px; ">
                          <asp:DropDownList ID="DropDownList1" runat="server" 
                               AutoPostBack="True">
                              <asp:ListItem>留言板</asp:ListItem>
                              <asp:ListItem>个人邮</asp:ListItem>
                          </asp:DropDownList>


                         
                </td>
                <td 
                    class="style27" style="text-align: left; vertical-align: bottom; height: 1px;">
                      </td>
            </tr>
          
            <tr>
                      <td style="width: 150px; text-align: right;">
                          标题:</td>
                <td class="style15" style="text-align: left; ">
                          <asp:TextBox ID="TextBox2" runat="server" Width="456px"></asp:TextBox>
                      </td>
                <td style="text-align: left">
                          &nbsp;</td>
            </tr>
            <tr>
                      <td style="width: 150px; text-align: right; height: 29px; vertical-align: top;">
                          内容:</td>
                <td class="style15" style="height: 29px; vertical-align: top; text-align: left;" 
                          colspan="2">
                          <asp:TextBox ID="TextBox4" runat="server" Width="814px" Height="482px" 
                              TextMode="MultiLine"></asp:TextBox>
                      </td>
            </tr>
            
            

              <tr >
                      <td style="width: 150px; text-align: right; height: 22px; vertical-align: top;">
                              <asp:Label ID="Label1" runat="server" Text="收件人ID:" Visible="False"></asp:Label>
                              </td>



                <td class="style15" style="text-align: left; ">
                              <asp:TextBox ID="receiver_id" runat="server" Width="454px"  Text="ID忘记了。直接输入姓名。点击查询吧" Visible="False"></asp:TextBox> 
                              
                    <asp:Button ID="Button1" runat="server" Text="查询" Width="79px"  Visible="False" 
                                  onclick="Button1_Click"/>


                                      <div>
              <table cellpadding="0" cellspacing="0" class="style1">
                                                 <tr>
                                                     <td style="text-align: right; vertical-align: bottom;">
                                                        

                                                        

                      <asp:GridView ID="GridView_show_admin_id" runat="server" 
                          CellPadding="4" ForeColor="#333333" width="814px"
                          GridLines="None" AutoGenerateColumns="False" 
                          AllowPaging="True" 
                          AllowSorting="True" PageSize="3" onrowcommand="gridview_admin_rowcommand">
                          <Columns>
                           

                                 <asp:TemplateField HeaderText="ID号">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_detail_admid"  width="79px" runat="server" Text='<%# Bind("_Aid") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="姓名">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_detail_stuname" width="179px" runat="server" Text='<%# Bind("_Aname") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                       <asp:TemplateField HeaderText="类型：管理员">
                                  <ItemTemplate>
                                      <asp:LinkButton ID="LinkButton2" width="179px" runat="server" 
                                          CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" 
                                          CommandName="admin_choose">选择填入ID</asp:LinkButton>
                                  </ItemTemplate>
                              </asp:TemplateField>

                          </Columns>
                          <AlternatingRowStyle BackColor="White" />
                          <EditRowStyle BackColor="#2461BF" />
                          <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                          <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                          <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                          <RowStyle BackColor="#EFF3FB" />
                          <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                          <SortedAscendingCellStyle BackColor="#F5F7FB" />
                          <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                          <SortedDescendingCellStyle BackColor="#E9EBEF" />
                          <SortedDescendingHeaderStyle BackColor="#4870BE" />
                      </asp:GridView>

                        <asp:GridView ID="GridView_show_teacher_id" runat="server" 
                          CellPadding="4" ForeColor="#333333" width="814px"
                          GridLines="None" AutoGenerateColumns="False" 
                          AllowPaging="True" 
                          AllowSorting="True" PageSize="3" onrowcommand="gridview_teacher_rowcommand">
                          <Columns>
                            

                                 <asp:TemplateField HeaderText="ID号">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_detail_teaid2" width="79px"  runat="server" Text='<%# Bind("_Tid") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="姓名">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_detail_stuname2" width="179px" runat="server" Text='<%# Bind("_Tname") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                      <asp:TemplateField HeaderText="类型：教 师">
                                  <ItemTemplate>
                                      <asp:LinkButton ID="LinkButton22" width="179px" runat="server" 
                                          CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" 
                                          CommandName="teacher_choose">选择填入ID</asp:LinkButton>
                                  </ItemTemplate>
                              </asp:TemplateField>

                          </Columns>
                          <AlternatingRowStyle BackColor="White" />
                          <EditRowStyle BackColor="#2461BF" />
                          <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                          <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                          <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                          <RowStyle BackColor="#EFF3FB" />
                          <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                          <SortedAscendingCellStyle BackColor="#F5F7FB" />
                          <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                          <SortedDescendingCellStyle BackColor="#E9EBEF" />
                          <SortedDescendingHeaderStyle BackColor="#4870BE" />
                      </asp:GridView>

                        <asp:GridView ID="GridView_show_student_id" runat="server" 
                          CellPadding="4" ForeColor="#333333" width="814px"
                          GridLines="None" AutoGenerateColumns="False" 
                          AllowPaging="True" 
                          AllowSorting="True" PageSize="3" onrowcommand="GridView_show_student_id_RowCommand">
                          <Columns>
                              

                                 <asp:TemplateField HeaderText="ID号">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_detail_stuid3"   width="79px" runat="server" Text='<%# Bind("_Sid") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="姓名">
                                        <ItemTemplate>
                                    <asp:Label ID="dLabel_detail_stuname3"  width="179px" runat="server" Text='<%# Bind("_Sname") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>

                                    <asp:TemplateField HeaderText="类型：学 生">
                                  <ItemTemplate>
                                      <asp:LinkButton ID="LinkButton23" width="179px" runat="server" 
                                          CommandArgument="<%# ((GridViewRow) Container).RowIndex %>" 
                                          CommandName="student_choose">选择填入ID</asp:LinkButton>
                                  </ItemTemplate> 
                              </asp:TemplateField>

                          </Columns>
                          <AlternatingRowStyle BackColor="White" />
                          <EditRowStyle BackColor="#2461BF" />
                          <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                          <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                          <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                          <RowStyle BackColor="#EFF3FB" />
                          <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                          <SortedAscendingCellStyle BackColor="#F5F7FB" />
                          <SortedAscendingHeaderStyle BackColor="#6D95E1" />
                          <SortedDescendingCellStyle BackColor="#E9EBEF" />
                          <SortedDescendingHeaderStyle BackColor="#4870BE" />
                      </asp:GridView>




                                                      </td>
                                                 </tr>
                                             </table>
            </div> 
                                   




            <div>
              <table cellpadding="0" cellspacing="0" class="style1">
                                                 <tr>
                                                     <td style=" width: 123px; text-align: right; vertical-align: bottom; height: 31px;">
                                             <asp:Button ID="Button2" runat="server" Height="24px" Text="发送" Width="122px" onclick="Button2_Click" 
                                                             />
                                                     </td>
                                                     <td style=" width: 27px; vertical-align: bottom; height: 31px;">
                                                         </td>
                                                     <td style=" text-align: left; vertical-align: bottom; height: 31px; width: 147px;">
                                             <asp:Button ID="Button3" runat="server" Height="24px" Text="重置" Width="122px" onclick="Button3_Click" 
                                                             />
                                                     </td>
                                                     <td style=" text-align: left; vertical-align: bottom; height: 31px;">
                                                         <asp:Button ID="Button4" runat="server" Height="24px" Text="关闭查询" 
                                                             Width="122px" OnClick="Button4_Click" Visible="False" />
                                                     </td>
                                                     <td style=" text-align: left; vertical-align: bottom; height: 31px;">
                                                         &nbsp;</td>
                                                 </tr>
                                             </table>
            </div> 
                                   
                      </td>
                
            </tr>




              
            </tr>
        </table>
       </div> 
    </div>


</asp:Content>

